package com.bw.journal.insert

import com.bw.common.mvi.BaseRespository
import com.bw.network.BaseEntity
import com.bw.network.HttpType
import com.bw.network.NetWorkFactory
import kotlinx.coroutines.flow.Flow

class JournalInsertRepo : BaseRespository() {

    fun requestInsert(map : Map<String,Any>):Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE)
            .create(ApiService::class.java)
            .insertJournal(createBody(map))
    }

}